Skip to content

8388793: Convert test/jdk/java/foreign tests to use JUnit - #32042

Draft
JornVernee wants to merge 5 commits into
openjdk:pr/32014from
JornVernee:JUnitConvert
Draft

8388793: Convert test/jdk/java/foreign tests to use JUnit#32042
JornVernee wants to merge 5 commits into
openjdk:pr/32014from
JornVernee:JUnitConvert

Conversation

@JornVernee

@JornVernee JornVernee commented Jul 24, 2026

Copy link
Copy Markdown
Member

This PR is carefully arranged into 4 different commits:

  1. The raw output of the JUnit conversion tool (e6d81b3)
  2. Changing assertThrows to use static imports like the other asserts (1fafd58)
  3. Tweaks to make the tests actually pass (d063278)
  4. Reducing the scope of assertThrows to cover only the lines that are actually expected to throw. I felt that his was needed to make some of the changes more 'sane', instead of just having the assertThrows cover the entire method body. (80d4b52)

It's probably easiest to review the individual commits. (1) and (2) and (4) are fairly mechanical changes, so the interesting thing to look at is (3).

Depends on: #32014



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Integration blocker

 ⚠️ Dependency #32014 must be integrated first

Issue

  • JDK-8388793: Convert test/jdk/java/foreign tests to use JUnit (Sub-task - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32042/head:pull/32042
$ git checkout pull/32042

Update a local copy of the PR:
$ git checkout pull/32042
$ git pull https://git.openjdk.org/jdk.git pull/32042/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 32042

View PR using the GUI difftool:
$ git pr show -t 32042

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32042.diff

@bridgekeeper

bridgekeeper Bot commented Jul 24, 2026

Copy link
Copy Markdown

👋 Welcome back jvernee! A progress list of the required criteria for merging this PR into pr/32014 will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Jul 24, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot added the core-libs core-libs-dev@openjdk.org label Jul 24, 2026
@openjdk

openjdk Bot commented Jul 24, 2026

Copy link
Copy Markdown

@JornVernee The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-libs core-libs-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

1 participant